package yyy.ab.common.core;

import java.util.HashMap;
import java.util.Map;

public class ResultCode {
    public static final String RESULT_STATUS_SUCCESS = "200";
    public static final String RESULT_STATUS_SERVICE_ERROR = "500";
    public static final String RESULT_STATUS_ERROR = "999";

    public static Map<String, String> msgMap = new HashMap<String, String>();

    static {
        msgMap.put("200", "操作成功！");
        msgMap.put("500", "服务器错误");
        msgMap.put("999", "参数错误");
    }

    public static String getMsg(String code) {
        return msgMap.get(code);
    }
}
